<template>
	<view class="news">
		<!-- 内容 -->
		<view class="main">
			<view class="newest">最新消息</view>
			<!-- 每一项 -->
			<view class="inform">
				<view class="inform-left">
					<u-image width="100rpx" height="100rpx" border-radius="20rpx" src="/static/dome/weixin.jpg">
					</u-image>
				</view>
				<view class="inform-right">
					<view class="title">
						<text class="username">交易物流</text>
						<text class="time">03-20</text>
					</view>
					<view class="wenzi u-line-1">
						您的订单 232333333 已配送完成,请及时领取
					</view>
				</view>
			</view>
			<!-- 2 -->
			<view class="inform">
				<view class="inform-left">
					<u-image width="100rpx" height="100rpx" border-radius="20rpx" src="/static/dome/touxiang.jpg">
					</u-image>
				</view>
				<view class="inform-right">
					<view class="title">
						<text class="username">有梦可追</text>
						<text class="time">03-20</text>
					</view>
					<view class="wenzi u-line-1">
						一直蓬勃发展，一派欣欣向荣，社区也是人声鼎沸
					</view>
				</view>
			</view>
			<!-- 3 -->
			<view class="inform">
				<view class="inform-left">
					<u-image width="100rpx" height="100rpx" border-radius="20rpx" src="/static/dome/wujueji.webp">
					</u-image>
				</view>
				<view class="inform-right">
					<view class="title">
						<text class="username">沉默是金</text>
						<text class="time">03-20</text>
					</view>
					<view class="wenzi u-line-1">
						这个方案，直接通过类名调用，有这几个对应类名
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
</script>

<style lang="scss" scoped>
	page {
		background-color: #f8f8f8;
	}

	.main {
		padding: 20rpx 0 0 20rpx;
		margin-top: 20rpx;
		background-color: #fff;

		.newest {
			color: #bdbdbd;
		}

		// 每一项
		.inform {
			margin-top: 20rpx;
			display: flex;
			align-items: center;

			.inform-left {
				margin-right: 20rpx;
			}

			.inform-right {
				flex: 1;
				padding: 30rpx 0;
				border-bottom: 2px solid #f8f7f5;

				.title {
					display: flex;
					justify-content: space-between;

					.username {
						font-size: 32rpx;
						font-weight: 700;
					}

					.time {
						font-size: 24rpx;
						color: #bdbdbd;
						margin-right: 20rpx;
					}
				}

				.wenzi {
					width: 460rpx;
					margin-top: 10rpx;
					font-size: 24rpx;
					color: #bdbdbd;
				}
			}
		}
	}
</style>
